Skip to content

fix: tar.bz2 archives not read to end resulting in wrong hash#1557

Merged
wolfv merged 2 commits intoconda:mainfrom
wolfv:failing-test
Jul 28, 2025
Merged

fix: tar.bz2 archives not read to end resulting in wrong hash#1557
wolfv merged 2 commits intoconda:mainfrom
wolfv:failing-test

Conversation

@wolfv
Copy link
Copy Markdown
Contributor

@wolfv wolfv commented Jul 28, 2025

We need to fix reading small tar.bz2 archives to the end. The openmp archive is only ~8kB and it looks like we are not reading the last ~4 or so bytes, resulting in a wrong hash being computed.

Since we recently started to always strictly validate package hashes, this is failing in pixi and other downstream users.

When I added some debug logging, it says:

bytes_read: 8192

while the entire archive is 8198 bytes long (so missing 6 bytes at the end).

@wolfv wolfv merged commit bbc744b into conda:main Jul 28, 2025
18 checks passed
@wolfv wolfv deleted the failing-test branch July 28, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants